'use strict';

const Controller = require('egg').Controller;

class ExamController extends Controller {
    async list() {
        const { ctx } = this
        // 查询数据库，获取项目列表
        const exam_list = await ctx.model.Exam.findAll({
            order: [
                ['created_time', 'DESC']
            ],
        });
        ctx.apiSuccess(exam_list,'ok', 200);
    }
}

module.exports = ExamController;
